﻿using System.Collections;

namespace Prototype
{
    internal class Manager
    {
        private Hashtable showcase = new();
        public void Register(string name, IProduct proto)
        {
            showcase[name] = proto;
        }

        public IProduct Create(string name)
        {
            var p = showcase[name] as IProduct;
            return p.CreateClone();
        }
    }
}
